{% extends "base.html" %}
{% load i18n adminmedia %}

{% block subtitle %}| {% trans 'Password change' %}{% endblock %}

{% block content %}<div id="content-main">

<form action="." method="post">{% csrf_token %}
<div>


<h1>{% trans 'Password change' %}</h1>
<div class="center">
<div style="display: inline-block;">
<table>
    <tr><td colspan="2">
        {% if form.errors %}
            <p class="errornote">
            {% blocktrans count form.errors.items|length as counter %}Please correct the error below.{% plural %}Please correct the errors below.{% endblocktrans %}
            </p>
        {% endif %}</td>
    </tr>
    <tr><td colspan="2">{{ form.old_password.errors }}</td></tr>
    <tr><td><label for="id_old_password" class="required">{% trans 'Old password' %}:</label></td><td>{{ form.old_password }}</td></tr>

    <tr><td colspan="2">{{ form.new_password1.errors }}</td></tr>
    <tr><td><label for="id_new_password1" class="required">{% trans 'New password' %}:</label></td><td>{{ form.new_password1 }}</td></tr>

    <tr><td colspan="2">{{ form.new_password2.errors }}</td></tr>
    <tr><td><label for="id_new_password2" class="required">{% trans 'New Password (again)' %}:</label></td><td>{{ form.new_password2 }}</td></tr>

</table>
<br>
    <input type="submit" value="{% trans 'Change my password' %}" class="default" />
    <input type="reset" value="{% trans 'Reset' %}" class="default" />
</div>
</div>
<script type="text/javascript">document.getElementById("id_old_password").focus();</script>
</div>
</form></div>

{% endblock %}
